<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<meta name="viewport" content="width=1000, initial-scale=1.0, maximum-scale=1.0">
	    <!-- Loading Bootstrap -->
	    <link href="<?php echo __PUBLIC__?>/Flat/dist/css/vendor/bootstrap.min.css" rel="stylesheet">
	    <!-- 新 Bootstrap 核心 CSS 文件 -->
		<link rel="stylesheet" href="//cdn.bootcss.com/bootstrap/3.3.5/css/bootstrap.min.css">
		<!-- jQuery文件。务必在bootstrap.min.js 之前引入 -->
		<script src="//cdn.bootcss.com/jquery/1.11.3/jquery.min.js"></script>
		<!-- 最新的 Bootstrap 核心 JavaScript 文件 -->
		<script src="//cdn.bootcss.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
	    <!-- HTML5 shim, for IE6-8 support of HTML5 elements. All other JS at the end of file. -->
	    <!--[if lt IE 9]>
	      <script src="dist/js/vendor/html5shiv.js"></script>
	      <script src="dist/js/vendor/respond.min.js"></script>
	    <![endif]-->
	</head>
	<body>
		<table class="table table-hover">
			<tr class="active">
			  <th width="30">sid</th>
			  <th>学生姓名</th>
			  <th>qq</th>
			  <th>电话</th>
			  <th>录入时间</th>
			  <th>状态</th>
			  <th>负责人</th>
			</tr>
			<?php foreach ($data as $k=>$v){?>
				<tr>
					<td><?php echo $v['sid']?></td>
					<td><?php echo $v['sname']?></td>
					<td><?php echo $v['qq']?></td>
					<td><?php echo $v['phone']?></td>
					<td><?php echo date('Y-m-d H:i',$v['addtime'])?></td>
					<td>
						<?php if($v['state']==0){?>
                
							<h5><span class="label label-default">未联系</span></h5>
						<?php }else if($v['state']==1){?>
							<h5><span class="label label-danger">已联系，没意向</span></h5>
						<?php }else if($v['state']==2){?>
							<h5><span class="label label-warning">需继续联系</span></h5>
						<?php }else if($v['state']==3){?>
							<h5><span  class="label label-success">已报名</span></h5>
						
               <?php }?>
					</td>
					<td><?php echo $v['username']?></td>
				</tr>
			<?php }?>
		</table>
		 <ul class="pagination">
		    <?php echo $page?>
		  </ul>
	</body>
</html>
